package com.example.huazong.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;


/**
 * Created by huazong on 2021/5/7.
 */

public class FirstActivity extends AppCompatActivity {
    TextView txt_yh;
    Intent intent;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.first_main);
        txt_yh=(TextView)findViewById(R.id.txt_yh);

        String Uname=getIntent().getStringExtra("用户");
        txt_yh.setText(Uname);


        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                intent=new Intent(FirstActivity.this,ThirdActivity.class);
                startActivity(intent);
                finish();
            }
        },3000);






    }

}
